package com.jeff.android.lab.architecture.designpattern;

import com.jeff.android.lab.BaseFragment;
import com.jeff.android.lab.BaseRecyclerViewFragment;
import com.jeff.android.lab.util.RouterUtil;

import java.util.ArrayList;
import java.util.List;

/**
 * 设计模式
 *
 * @author: duff
 * @date: 2019/1/14
 * @since: 1.0.0
 */
public class DesignPatternFragment extends BaseRecyclerViewFragment {

    @Override
    protected List<String> getData() {
        return new ArrayList<String>() {
            {
                add("singleton");
            }
        };
    }

    @Override
    protected void launch(String widget) {
        if ("api".equals(widget)) {
//            RouterUtil.launchFragmentActivity(getContext(), RxJava2ApiFragment.class);
        }
    }

}
